﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="Contacts.aspx.cs" Inherits="Admin_Contacts" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="categorytree" runat="server" class="tree">
        <asp:DropDownList runat="server" ID="ddlLanguageChoose" AutoPostBack="true"
            onselectedindexchanged="ddlLanguageChoose_SelectedIndexChanged" >
            <asp:ListItem Text="Русский" Value="1"></asp:ListItem>
            <asp:ListItem Text="עברית" Value="2"></asp:ListItem>
        </asp:DropDownList>
    </div>
    <div id="content" runat="server">
        <asp:UpdatePanel runat="server" ID="updPanel">
            <ContentTemplate>
                <h2>
                    Редактировать страницу</h2>
                <h3 runat="server" id="updated" visible="false" class="highlight">
                    Данные успешно сохранены.</h3>
                <fieldset>
                    <div>
                        <asp:HiddenField runat="server" ID="hfID" />
                        <h3><%=sPageTitle %></h3>
                    </div>
                    <div>
                        <asp:Label runat="server" ID="lblEmails" Text="Ваша электронная почта:"></asp:Label>
                        <asp:TextBox runat="server" ID="txtEmails"></asp:TextBox>
                    </div>
                    <div>
                        <asp:Label runat="server" AssociatedControlID="fckPageContent">Содержание</asp:Label>
                        <FCKeditorV2:FCKeditor runat="server" ID="fckPageContent" BasePath="~/fckeditor/"
                            Width="60%" EnableViewState="true" Height="300px" ToolbarSet="ArticleBasic">
                        </FCKeditorV2:FCKeditor>
                    </div>
                    <div id="thumbnail" runat="server">
                        <img runat="server" id="imgPreview" style="width:251px;height:351px;"/>
                        <br />
                        <asp:Label runat="server" AssociatedControlID="uplImage">Изменить картинку:</asp:Label>
                        <ajax:AsyncFileUpload runat="server" ID="uplImage" Width="400px" CompleteBackColor="White"
                                UploadingBackColor="#CCFFFF" ThrobberID="imgLoader" OnUploadedComplete="uplImage_UploadedComplete" />
                        <asp:Image ID="imgLoader" runat="server" ImageUrl="~/Images/loading.gif" />
                    </div>
                    <br />
                    <asp:ValidationSummary ID="vsSummary" runat="server" CssClass="error" DisplayMode="List" />
                    <asp:Button ID="btnSave" runat="server" Text="Сохранить" OnClick="btnSave_Click" />
                </fieldset>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
